package cn.edu.mapper;

import org.apache.ibatis.annotations.Param;
import cn.edu.bean.Doctor;
import cn.edu.bean.MsgContent;
import cn.edu.bean.SysMsg;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created by sang on 2018/2/2.
 */
@Repository
public interface SysMsgMapper {

    int sendMsg(MsgContent msg);

    int addMsg2AllDoctor(@Param("doctors") List<Doctor> doctors, @Param("mid") Long mid);

    List<SysMsg> getSysMsg(@Param("start") int start, @Param("size") Integer size,@Param("doctorid") Long doctorid);

    int markRead(@Param("flag") Long flag, @Param("doctorid") Long doctorid);
}
